<?php
#include '../tool/BcTool.php';
#include '../tool/DateTimeTool.php';

#use tool\DateTimeTool;

#$bcTool = new BcTool();

#$numArray = ['123122.212', '123122.21'];
#echo $bcTool->compMax($numArray, 3);
#echo "\n";
#echo $bcTool->compMin($numArray, 3);
#echo "\n";
#echo $bcTool->add('123122.1127', '121.2383');
#echo "\n";
#echo $bcTool->sub('123112.118', '121.888');
#echo "\n";
#echo $bcTool->mul('123112.118', '121.885');

#$dateTimeTool = new DateTimeTool();
#echo $dateTimeTool->getCurrentMonth();

#use tool\DateTimeTool;
#aaaaaaa
#aaa
#aab
#bbcc
#bcbcc

#$dateTimeTool = new DateTimeTool();
#$month = $dateTimeTool->getLastMonth();
#print_r($month);

include '../tool/ConvertTool.php';
include '../tool/DateTimeTool.php';
use tool\ConvertTool;
use tool\DateTimeTool;

$convertTool = new ConvertTool();
$chineseNum = $convertTool->numberToChinese(199, true);
print_r($chineseNum);
$xml = $convertTool->arrayToXml([100, 'key1' => "1212"]);
print_r($xml);
#$arr = $convertTool->xmlToArray($xml);
#print_r($arr);

$dateTimeTool = new DateTimeTool();
$lastDay = $dateTimeTool->getLastDayOnMonth('2016-02');
print_r($lastDay);

$time = strtotime("2020-02-11 00:00:00");
print_r(date("Y-m-t 23:59:59", $time));
